import { serverUrl } from "./request";
export const urlImg = (url) => {
  if (url) {
    if (url.startsWith("http")) {
      return url;
    } else {
      return serverUrl + url;
    }
  } else {
    return "https://image.suning.cn/uimg/cmf/cust_headpic/0000000000_01_240x240.jpg";
  }
};
